package cn.edu.yzu.scholarship.validator;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public class ThawValidator extends Validator {

	@Override
	protected void validate(Controller c) {
		this.validateRequired("xhs", "errorInfo", "学生列表不能为空！");
	}

	@Override
	protected void handleError(Controller c) {
		c.renderJson("errorInfo",c.getAttr("errorInfo"));
	}

}
